package dao

import "gorm.io/gorm"

type Content struct {
	gorm.Model
	UserId   int    `json:"userId" gorm:"type:int(10);not null;comment:'用户编号'"`
	IntroId  int    `json:"introId" gorm:"type:int(10);not null;comment:'攻略编号'"`
	Contents string `json:"contents" gorm:"type:text;not null;comment:'评论内容'"`
}

type ContentList struct {
	gorm.Model
	UserId   int    `json:"userId" gorm:"type:int(10);not null;comment:'用户编号'"`
	IntroId  int    `json:"introId" gorm:"type:int(10);not null;comment:'攻略编号'"`
	Contents string `json:"contents" gorm:"type:text;not null;comment:'评论内容'"`
	Time     string `json:"time" gorm:"type:varchar(200);default:时间;"`
}
